package Common;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import java.io.PrintWriter;
import java.sql.DriverManager;

public class Init implements ServletContextListener {

    public Init() {}
    public void contextDestroyed(ServletContextEvent arg0) {}
    public void contextInitialized(ServletContextEvent arg0) {
        try {
            // 需要实现的功能
            new Common().Init();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
